<div class="container">
    <div class="line-big">
        <div class="xb9 xm8">
            <div class="panel dux-box dux-cell">
                <div class="panel-head clearfix">
                    <ul class="bread float-left">
                        <!--loop{$crumb as $vo}-->
                        <li><a href="{$vo.url}">{$vo.name}</a></li>
                        <!--{/loop}-->
                    </ul>
                    <!--if{$pageList}-->
                    <div class="menu">
                        <div class="button-group button-group-small">
                            <button type="button" class="button active">新主题</button>
                            <button type="button" class="button">最后回复</button>
                        </div>
                    </div>
                    <!--{/if}-->
                </div>
                <!--if{$topList && (!$_GET['page'] || $_GET['page'] == 1)}-->
                <table class="table table-hover thread-list thread-top">
                    <tbody>
                       <!--loop{$topList as $vo}-->
                        <tr>
                            <td width="64">
                                <a href="{url('forum/UserHome/index',array('user_id'=>$vo['post_user']))}"><img width="48" height="48" class="avatar" src="{target('forum/User')->avatar($vo['post_user'])}" alt="{$threadInfo.post_username}"></a>
                            </td>
                            <td>
                                <!--if{$vo['type_top'] ==1 }-->
                                <span class="icon-angle-up text-yellow" title="板块置顶"></span>
                                <!--{/if}-->
                                <!--if{$vo['type_top'] ==2 }-->
                                <span class="icon-angle-double-up text-yellow" title="全局置顶"></span>
                                <!--{/if}-->
                                <a href="{$vo.aurl}">
                                <!--if{$vo['font_bold']}-->
                                <strong>
                                <!--{/if}-->
                                <!--if{$vo['font_color']}-->
                                <font color="{$vo['font_color']}">
                                <!--{/if}-->
                                {$vo.title}
                                <!--if{$vo['font_bold']}-->
                                </strong>
                                <!--{/if}-->
                                <!--if{$vo['font_color']}-->
                                </font>
                                <!--{/if}-->
                                </a>
                                <!--if{$vo['lock']}-->
                                <span class="icon-lock text-yellow" title="锁定"></span>
                                <!--{/if}-->
                                <p class="meta"><a href="{url('forum/UserHome/index',array('user_id'=>$vo['post_user']))}">{$vo.post_username}</a> • {date('m月d日 H:i',$vo['post_time'])}
                                    <!--if{$vo['reply_user']}-->
                                    • 最后回复来自 <a href="{url('forum/UserHome/index',array('user_id'=>$vo['reply_user']))}">{$vo.reply_username}</a>
                                    <!--{/if}-->
                                </p>
                            </td>
                        </tr>
                        <!--{/if}-->
                    </tbody>
                </table>
                <!--{/if}-->
                <!--if{$pageList}-->
                <table class="table table-hover thread-list">
                    <tbody>
                        <!--if{empty($pageList)}-->
                        <tr>
                            <td>

                                <p class="text-center">暂时没有人发帖！</p>
                            </td>
                        </tr>
                        <!--{else}-->
                        <!--loop{$pageList as $vo}-->
                        <tr>
                            <td width="64">
                                <a href="{url('forum/UserHome/index',array('user_id'=>$vo['post_user']))}"><img width="48" height="48" class="avatar" src="{target('forum/User')->avatar($vo['post_user'])}" alt="{$threadInfo.post_username}"></a>
                            </td>
                            <td>
                                <!--if{$vo['type_digest']}-->
                                <span class="icon-sun-o text-yellow" title="热帖"></span>
                                <!--{/if}-->
                                <!--if{$vo['type_hop']}-->
                                <span class="icon-fire text-yellow" title="热帖"></span>
                                <!--{/if}-->
                                <a href="{$vo.aurl}">
                                <!--if{$vo['font_bold']}-->
                                <strong>
                                <!--{/if}-->
                                <!--if{$vo['font_color']}-->
                                <font color="{$vo['font_color']}">
                                <!--{/if}-->
                                {$vo.title}
                                <!--if{$vo['font_bold']}-->
                                </strong>
                                <!--{/if}-->
                                <!--if{$vo['font_color']}-->
                                </font>
                                <!--{/if}-->
                                </a>
                                <!--if{$vo['lock']}-->
                                <span class="icon-lock text-yellow" title="锁定"></span>
                                <!--{/if}-->
                                <p class="meta"><a href="{url('forum/UserHome/index',array('user_id'=>$vo['post_user']))}">{$vo.post_username}</a> • {date('m月d日 H:i',$vo['post_time'])}
                                    <!--if{$vo['reply_user']}-->
                                    • 最后回复来自 <a href="{url('forum/UserHome/index',array('user_id'=>$vo['reply_user']))}">{$vo.reply_username}</a>
                                    <!--{/if}-->
                                </p>
                            </td>
                        </tr>
                        <!--{/loop}-->
                        <!--{/if}-->
                    </tbody>
                </table>
                <div class="panel-foot text-center">
                    {$page}
                </div>
                <!--{else}-->
                <table class="table table-hover">
                    <tbody>
                        <!--loop{$plateList as $plate}-->
                        <tr>
                            <td width="50">
                                <div class="txt txt-small radius-circle bg-main">1</div>
                            </td>
                            <td>
                                <h4><a href="{$plate.curl}">{$plate.name}</a></h4>
                                <!--if{$plate['description']}-->
                                <p>{$plate.description}</p>
                                <!--{else}-->
                                <p>该板块暂无简介</p>
                                <!--{/if}-->
                            </td>
                            <td>
                                <!--thread{app="forum" label="threadList" limit=1 plate_id=$plate['plate_id']  }-->
                                <p><a href="{$thread.aurl}">{len($thread.title,10)}</a>
                                </p>
                                <p>{date('m-d H:i',$thread.post_time)} <a href="{url('forum/UserHome/index',array('user_id'=>$vo['post_user']))}">{$thread.post_username}</a>
                                </p>
                                <!--{/thread}-->
                            </td>
                            <td align="center" width="100"><span class="tag bg-main"><!--echo{app="forum" label="threadCount" plate_id=$plate['plate_id']  }--></span>
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                </table>
                <!--{/if}-->
            </div>
            <br>
        </div>
        <div class="xb3 xm4 text-small dux-sidebar">
            <a href="{url('posts/Push/add',array('plate_id'=>$plateInfo['plate_id']))}" class="button bg-yellow button-block text-center">发布主题</a>
            <br>
            <?php $__Template->display('app/forum/view/common/sidebar'); ?>
        </div>
    </div>
</div>